package org.farm2.ai.call.tools;

import org.springframework.cglib.core.internal.Function;

public class MockWeatherService implements Function<MockWeatherService.Request, MockWeatherService.Response> {
    public enum Unit { C, F }
    public record Request(String location, Unit unit) {}
    public record Response(double temp, Unit unit) {}

    public Response apply(Request request) {
        return new Response(30.0, Unit.C);
    }
}